{% from "devhub/includes/macros.html" import tip %}

{% if version %}
  <tr>
    <th>{{ tip(_('License'),
               _('Please choose a license appropriate for the rights you grant on your source code. '
                 'It is only relevant for listed add-ons.')) }}</th>
    <td>
      {{ license_form.builtin.errors }}
      {{ license_form.builtin }}
      <div class="license-other {{ 'js-hidden' if not (license_form.initial.builtin == license_other_val or
                                  (license_form.errors and not license_form.builtin.errors)) }}"
        data-val="{{ license_other_val }}">
        {{ license_form.non_field_errors() }}
        {{ license_form.name.errors }}
        {{ license_form.name.label_tag() }}
        {{ license_form.name }}
        {{ license_form.text.errors }}
        {{ license_form.text.label_tag() }}
        {{ license_form.text }}
      </div>
    </td>
  </tr>
{% endif %}
